package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.CarottaProductMapper;
import com.atmilan.quartz.model.entity.carotta.CarottaProduct;
import com.atmilan.quartz.service.ICarottaProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarottaProductServiceImpl extends ServiceImpl<CarottaProductMapper, CarottaProduct> implements ICarottaProductService {
    @Autowired
    CarottaProductMapper carottaProductMapper;

    @Override
    public void deleteAll() {
        carottaProductMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        carottaProductMapper.deleteProductBack();
        carottaProductMapper.copyProductBack();
    }

}
